#include "stc.h"

void main() {
    int a;
    int b;
	int count=0;
	int kq;
	int temp;
R:
	PutStr("nhap X: ");
	int X=GetInt();
	if(X<100 || X>9999999 )goto R;
	PutStr("nhap Y: ");
	int Y=GetInt();
	if(Y<100 || Y>9999999 || X >Y )goto R;
	kq=X;
R1:
	if (kq>Y) goto E;
	kq=kq+1;
	temp=kq;
R2:   
	if(temp==0)goto E1;
	a=temp/10%10;
	b=temp%10;	
	if(a>=b)goto R1;
	temp=temp/10;
	goto R2;
E1:	
	PutInt(kq);
	PutStr(" ");
	count=count+1;
	goto R1;
E:	
	PutStr("\ncount:");
	PutInt(count);	
}